package com.ctshk.rpc.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Lenovo
 */
@Data
@ApiModel(value="MainDataTableReq对象", description="新增主数据")
public class MainDataTableReq implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主数据表id")
    private Long id;

    @NotBlank(message = "主数据名称不能为空")
    @ApiModelProperty(value = "主数据名称")
    private String tableName;

    @NotNull(message = "模块不能为空")
    @ApiModelProperty(value = "模块属性")
    private Integer module;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态（0：启用 1：禁用）")
    private Integer status;


}
